//
//  AddressCell.h
//  jang
//
//  Created by lee han on 23/04/2017.
//  Copyright © 2017 lee han. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "network.h"

@protocol AddressCellDelegate <NSObject>

- (void)onAddressCellSelected:(NSInteger)addressid;

- (void)onAddressCellChanged;
@end

@interface AddressCell : UITableViewCell<networkDelegate>{
    NSInteger mType;//0我的界面进入，1购物车进入
    NSInteger mAddressId;
    BOOL mSelected;
    id<AddressCellDelegate> mDelegate;
}

-(void)initWith:(NSDictionary*)data type:(NSInteger)type delegate:(id<AddressCellDelegate>) delegate;
-(void)setCellSelected:(BOOL)selected;
@property (weak, nonatomic) IBOutlet UIView *mContainView;

@property (weak, nonatomic) IBOutlet UILabel *mTextName;
@property (weak, nonatomic) IBOutlet UILabel *mTextPhone;
@property (weak, nonatomic) IBOutlet UIButton *mButtonSelect;
@property (weak, nonatomic) IBOutlet UILabel *mTextAddress;
@end
